package com.lq.ecoldchain.ui.main.orderlist.order.list

import android.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.databinding.LayoutOrderItemBinding
import com.lq.ecoldchain.entity.OrderDetailBean

/*
*2019/1/6 0006  18:07
*function by lq
*/
class MineOrderListAdapter(list:List<OrderDetailBean>):BaseQuickAdapter<OrderDetailBean,BaseViewHolder>(R.layout.layout_order_item,list){
    override fun convert(helper: BaseViewHolder, item: OrderDetailBean) {
        val binding = DataBindingUtil.bind<LayoutOrderItemBinding>(helper.itemView)
        binding!!.bean = item
        binding.executePendingBindings()
        helper.addOnClickListener(R.id.orderItemLL)
    }

}